package com.lh.serverforwebrtc.service;

import com.lh.serverforwebrtc.bean.RespBean;
import com.lh.serverforwebrtc.bean.RoomBean;

import java.util.List;

/**
 * @Author: Lh
 * @Description:
 * @Date: Created in 10:36 2022/6/10
 */
public interface  RoomService {

    /**
     * 创建房间
     */
    RespBean createRoom(Long id);

    /**
     * 销毁房间
     * @param roomId
     * @return
     */
    RespBean deleteRoom(Long roomId);

    /**
     *
     * @param id
     * @param roomId
     * @return
     */
    RespBean addRoom(Long id,Long roomId);

    RespBean hangUp(Long id,Long roomId);

    /**
     * 通过房间号查询成员
     * @param roomId
     * @return
     */
    List<Long> findMembersByRoomId(Long roomId);
}
